package top.wangjiu.reactive.rpc.generater;

import java.lang.reflect.Method;

/**
 * @ClassName HashMethodNameIdGenerater
 * @Description TODO
 * @Author wangjiu
 * @Date 2021/8/5 11:36 上午
 */
public class HashMethodNameIdGenerater implements RequestIdGenerater{

    @Override
    public String get(Class interfaceClass, Method method,long invokeTime, Object[] args) {
        String[] name = method.toString().split(" ");
        String simpleName = name[name.length-1];
        return simpleName +"."+invokeTime+"."+ System.currentTimeMillis();
    }
}
